-- GENERATED SPELL FOR [Void Terror] --


function spell0_19980(pUnit, Event) --@Double Breath,n/a--
pUnit:FullCastSpellOnTarget(36406,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19980', 4500, 1)
end

function spell1_19980(pUnit, Event) --@Stomp,n/a--
pUnit:FullCastSpellOnTarget(36405,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19980', 565, 1)
end

function Sorts_19980(pUnit, Event)
local choix_sorts_19980 = math.random(0, 1)
if choix_sorts_19980 == 0 then
pUnit:RegisterEvent('spell0_19980', 1, 1)
end
if choix_sorts_19980 == 1 then
pUnit:RegisterEvent('spell1_19980', 1, 1)
end
end

function mob19980_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19980', math.random(1500, 3000), 1)
end

function mob19980_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19980_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19980_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19980, 1, 'mob19980_Action')
RegisterUnitEvent(19980, 2, 'mob19980_Leave')
RegisterUnitEvent(19980, 3, 'mob19980_Kill')
RegisterUnitEvent(19980, 4, 'mob19980_Die')
